import request from '@/utils/request'

// 查询分级得分列表
export function listClassificationData(query) {
  return request({
    url: '/quality/classificationData/list',
    method: 'get',
    params: query
  })
}

// 查询分级得分列表
export function listClassificationUser(query) {
  return request({
    url: '/quality/classificationData/listUser',
    method: 'get',
    params: query
  })
}

// 查询分级得分列表
export function listClassificationProgress(query) {
  return request({
    url: '/quality/classificationData/listProgress',
    method: 'get',
    params: query
  })
}

// 查询分级得分详细
export function getClassificationData(id) {
  return request({
    url: '/quality/classificationData/' + id,
    method: 'get'
  })
}

// 新增分级得分
export function addClassificationData(data) {
  return request({
    url: '/quality/classificationData',
    method: 'post',
    data: data
  })
}

// 修改分级得分
export function updateClassificationData(data) {
  return request({
    url: '/quality/classificationData',
    method: 'put',
    data: data
  })
}

// 删除分级得分
export function delClassificationData(id) {
  return request({
    url: '/quality/classificationData/' + id,
    method: 'delete'
  })
}
